package cn.net.msg.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import cn.net.msg.model.ReturnPointBean;
import cn.net.msg.model.TbFavourite;
import cn.net.msg.model.TbUser;
import cn.net.msg.service.base.Order;

public interface MemberDao {

    public TbUser checkLogin(String userNameOrEmail, String password);

    public void updateLoginTime(TbUser tbUser);

    public boolean isExsitName(String name);

    public boolean isExsitEmail(String email);

    public void saveUser(TbUser tbUser);

    public ReturnPointBean getUserPoint(long userid);

    public int deleteUser(long id);

    public TbUser find(long userid);

    public void update(TbUser tbUser);

    public void uploadUserPoints(Map<String,Object> map);

    public void updateUserPassword(String email,String password);

    public List<TbFavourite> getUserFavouriteForList(int firstIndex,
            int maxResult,List<HashMap<String,Object>> queryParams, Order order, String propertyName);
}
